//
//  HPChoiceButtonView.h
//  Food choices
//
//  Created by xalo on 16/3/5.
//  Copyright © 2016年 张广斌. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ChoiceView.h"

@protocol HPChoiceAddViewToSupView <NSObject>

- (void)addToSupView:(ChoiceView *)choiceView;

- (void)closeChoiceView;

@end

@interface HPChoiceButtonView : UIView

@property (nonatomic,assign) id<HPChoiceAddViewToSupView> delegete;


//弹出选择页面
@property (nonatomic,strong) UIView *buttonView; 

@property (nonatomic,strong) UIButton * areaBtn;//选择区域button

@property (nonatomic,strong) UIButton * sortBtn;

@property (nonatomic,strong) UIButton * filterBtn;

@property (nonatomic,strong) ChoiceView * areaView;//选择区域button弹出的View

@property (nonatomic,strong) ChoiceView * filterView;//筛选的View

@property (nonatomic,strong) NSArray * filterArray;//筛选视图上的展示内容

//判断三个页面的状态
@property (nonatomic,assign) BOOL areaSelected;

@property (nonatomic,assign) BOOL filterSelected;

//行政区数组
@property (nonatomic,strong) NSArray *districtArray;

//创建选择视图
-(void)creatChoiceViewWithY:(CGFloat )y;

//关闭视图
-(void)closeChoiceView;
@end
